﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BoxBangXepHang.ascx.cs" Inherits="GUI.Controls.Sport.BoxBangXepHang" %>
<div class="docnhieunhat bxh fl">
    <h2>
        BẢNG XẾP HẠNG</h2>
    <ul class="clearfix">
        <asp:Literal runat="server" ID="ltrTabHeader"></asp:Literal>
    </ul>
    <asp:Literal runat="server" ID="ltrData"></asp:Literal>
</div>
<script type="text/javascript">
    $(".bxh table").each(function () {
        $(this).find("tr:first").css('background-color', '#a3a3a3');
        $(this).find("tr:not(':first'):odd").css('background-color', '#f4f4f4');
        var tr = $(this).find('tr');
        var color;
        tr.each(function () {
            switch (tr.index($(this))) {
                case 1:
                case 2:
                case 3:
                    {
                        color = '#1a7000';
                        break;
                    }
                case 4:
                    {
                        color = '#005770';
                        break;
                    }
                case 18:
                case 19:
                case 20:
                    {
                        color = '#f1372a';
                        break;
                    }
                default:
                    {
                        color = '#505050';
                        break;

                    }
            }
            $(this).find('span').css({ 'background-color': color });
        });

    });
    $('.docnhieunhat.bxh').tab();
</script>
